package io.xxx.xbutler.sdk.request;

import com.alibaba.fastjson2.annotation.JSONField;
import io.xxx.xbutler.sdk.TanJingRequest;
import io.xxx.xbutler.sdk.response.SignOutResponse;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Map;

/**
 * 登出接口3.0（兼容PC）
 */
@Data
@Accessors(chain = true)
public class SignOutRequest implements TanJingRequest<SignOutResponse> {

    @JSONField(name = "robot_serial_no")
    private String robotSerialNo;

    @Override
    public String path() {
        return "/scrm/robot/sign-out";
    }

    @Override
    public Map<String, Object> params() {
        return Map.of("robot_serial_no", robotSerialNo);
    }

    @Override
    public Class<SignOutResponse> responseType() {
        return SignOutResponse.class;
    }

    @Override
    public String merchantName() {
        return "merchant_no";
    }
}
